import type { ISchema } from '@formily/vue'

import { merge } from 'lodash-es'

export default function<T extends Record<any, any>>(schema: T, modify: { [k in keyof T]?: Partial<ISchema> }): T {
  return merge(schema, modify)
}
